# -*- coding: utf-8 -*-
# /usr/bin/python
# 作者：kimicr
# 实验日期：20190820
# Python版本：3.6.3
import speech_recognition as sr
r = sr.Recognizer()    #调用识别器
test = sr.AudioFile("./get_voice/test_get.wav")   #导入语音文件
with test as source:
    audio = r.record(source)
type(audio)
c=r.recognize_sphinx(audio, language='zh-cn')     #识别输出
print(c)
